﻿using HoverTree.BLL;
using HoverTree.Model;
using System;
using System.Web;

namespace HoverTreeMobile.HvtAdmin
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            PanelUserInfo m_info = new PanelUserInfo();
            HvtPanelUser m_bll = new HvtPanelUser();
            m_info= m_bll.GetByUserName(HttpContext.Current.User.Identity.Name);
            if(m_info!=null)
            ltlWelcome.Text = m_info.HvtWelcome;
        }

        protected void btnGenerateAll_Click(object sender, EventArgs e)
        {
            if (txtHvtConfirm.Text == "hovertree")
            {
                txtHvtConfirm.Text = new HoverTree.BLL. HvtPicture().GenerateAll();
                if (txtHvtConfirm.Text == "")
                    txtHvtConfirm.Text = "生成成功";
            }
        }
    }
}